package com.itheima.demo02;

public class Outer {

    private int num1 = 10;

    private class Inner{
        int num2 = 20;

        public void show(){
            System.out.println("我是内部类Inner中的show方法");
            System.out.println(num1);
            System.out.println(num2);
        }
    }

    public void shi(){
        Inner inner = new Inner();
        inner.show();
    }
}
